import { createStore } from 'vuex'
import VuexPersistence from 'vuex-persist'  //使vuex持久化

const vuexLocal = new VuexPersistence({
  storage: window.localStorage
})
import user from './user'
const store = createStore({
  modules: {
    user
  },
  plugins: [vuexLocal.plugin]
})

export default store
